home *** CD-ROM | disk | FTP | other *** search
/ FishMarket 1.0 / FishMarket v1.0.iso / fishies / 051-075 / disk_061 / microemacs / efunc.h < prev    next >
C/C++ Source or Header  |  1992-05-06  |  15KB  |  386 lines

  1. /*    EFUNC.H:    MicroEMACS function declarations and names
  2.  
  3.         This file list all the C code functions used by MicroEMACS
  4.     and the names to use to bind keys to them. To add functions,
  5.     declare it here in both the extern function list and the name
  6.     binding table.
  7.  
  8. */
  9.  
  10. /*    External function declarations        */
  11.  
  12. extern  int     ctrlg();                /* Abort out of things          */
  13. extern  int     quit();                 /* Quit                         */
  14. extern  int     ctlxlp();               /* Begin macro                  */
  15. extern  int     ctlxrp();               /* End macro                    */
  16. extern  int     ctlxe();                /* Execute macro                */
  17. extern  int     fileread();             /* Get a file, read only        */
  18. extern  int     filefind();        /* Get a file, read write       */
  19. extern  int     filewrite();            /* Write a file                 */
  20. extern  int     filesave();             /* Save current file            */
  21. extern  int     filename();             /* Adjust file name             */
  22. extern  int     getccol();              /* Get current column           */
  23. extern  int     gotobol();              /* Move to start of line        */
  24. extern  int     forwchar();             /* Move forward by characters   */
  25. extern  int     gotoeol();              /* Move to end of line          */
  26. extern  int     backchar();             /* Move backward by characters  */
  27. extern  int     forwline();             /* Move forward by lines        */
  28. extern  int     backline();             /* Move backward by lines       */
  29. extern  int     forwpage();             /* Move forward by pages        */
  30. extern  int     backpage();             /* Move backward by pages       */
  31. extern  int     gotobob();              /* Move to start of buffer      */
  32. extern  int     gotoeob();              /* Move to end of buffer        */
  33. extern  int     setfillcol();           /* Set fill column.             */
  34. extern  int     setmark();              /* Set mark                     */
  35. extern  int     swapmark();             /* Swap "." and mark            */
  36. extern  int     forwsearch();           /* Search forward               */
  37. extern  int     backsearch();           /* Search backwards             */
  38. extern    int    sreplace();        /* search and replace        */
  39. extern    int    qreplace();        /* search and replace w/query    */
  40. extern  int     showcpos();             /* Show the cursor position     */
  41. extern  int     nextwind();             /* Move to the next window      */
  42. extern  int     prevwind();             /* Move to the previous window  */
  43. extern  int     onlywind();             /* Make current window only one */
  44. extern  int     splitwind();            /* Split current window         */
  45. extern  int     mvdnwind();             /* Move window down             */
  46. extern  int     mvupwind();             /* Move window up               */
  47. extern  int     enlargewind();          /* Enlarge display window.      */
  48. extern  int     shrinkwind();           /* Shrink window.               */
  49. extern  int     listbuffers();          /* Display list of buffers      */
  50. extern  int     usebuffer();            /* Switch a window to a buffer  */
  51. extern  int     killbuffer();           /* Make a buffer go away.       */
  52. extern  int     reposition();           /* Reposition window            */
  53. extern  int     refresh();              /* Refresh the screen           */
  54. extern  int     twiddle();              /* Twiddle characters           */
  55. extern  int     tab();                  /* Insert tab                   */
  56. extern  int     newline();              /* Insert CR-LF                 */
  57. extern  int     indent();               /* Insert CR-LF, then indent    */
  58. extern  int     openline();             /* Open up a blank line         */
  59. extern  int     deblank();              /* Delete blank lines           */
  60. extern  int     quote();                /* Insert literal               */
  61. extern  int     backword();             /* Backup by words              */
  62. extern  int     forwword();             /* Advance by words             */
  63. extern  int     forwdel();              /* Forward delete               */
  64. extern  int     backdel();              /* Backward delete              */
  65. extern  int     killtext();             /* Kill forward                 */
  66. extern  int     yank();                 /* Yank back from killbuffer.   */
  67. extern  int     upperword();            /* Upper case word.             */
  68. extern  int     lowerword();            /* Lower case word.             */
  69. extern  int     upperregion();          /* Upper case region.           */
  70. extern  int     lowerregion();          /* Lower case region.           */
  71. extern  int     capword();              /* Initial capitalize word.     */
  72. extern  int     delfword();             /* Delete forward word.         */
  73. extern  int     delbword();             /* Delete backward word.        */
  74. extern  int     killregion();           /* Kill region.                 */
  75. extern  int     copyregion();           /* Copy region to kill buffer.  */
  76. extern  int     spawncli();             /* Run CLI in a subjob.         */
  77. extern  int     spawn();                /* Run a command in a subjob.   */
  78. #if    BSD
  79. extern    int    bktoshell();        /* suspend emacs to parent shell*/
  80. extern    int    rtfrmshell();        /* return from a suspended state*/
  81. #endif
  82. extern  int     quickexit();            /* low keystroke style exit.    */
  83. extern    int    setmode();        /* set an editor mode        */
  84. extern    int    delmode();        /* delete a mode        */
  85. extern    int    gotoline();        /* go to a numbered line    */
  86. extern    int    namebuffer();        /* rename the current buffer    */
  87. #if    WORDPRO
  88. extern    int    gotobop();        /* go to beginning/paragraph    */
  89. extern    int    gotoeop();        /* go to end/paragraph        */
  90. extern    int    fillpara();        /* fill current paragraph    */
  91. #endif
  92. extern    int    help();            /* get the help file here    */
  93. extern    int    deskey();        /* describe a key's binding    */
  94. extern    int    viewfile();        /* find a file in view mode    */
  95. extern    int    insfile();        /* insert a file        */
  96. extern    int    scrnextup();        /* scroll next window back    */
  97. extern    int    scrnextdw();        /* scroll next window down    */
  98. extern    int    bindtokey();        /* bind a function to a key    */
  99. extern    int    unbindkey();        /* unbind a key's function    */
  100. extern    int    namedcmd();        /* execute named command    */
  101. extern    int    desbind();        /* describe bindings        */
  102. extern    int    execcmd();        /* execute a command line    */
  103. extern    int    execbuf();        /* exec commands from a buffer    */
  104. extern    int    execfile();        /* exec commands from a file    */
  105. extern    int    nextbuffer();        /* switch to the next buffer    */
  106. #if    WORDPRO
  107. extern    int    killpara();        /* kill the current paragraph    */
  108. #endif
  109. extern    int    setgmode();        /* set a global mode        */
  110. extern    int    delgmode();        /* delete a global mode        */
  111. extern    int    insspace();        /* insert a space forword    */
  112. extern    int    forwhunt();        /* hunt forward for next match    */
  113. extern    int    backhunt();        /* hunt backwards for next match*/
  114. extern    int    pipe();            /* pipe command into buffer    */
  115. extern    int    filter();        /* filter buffer through dos    */
  116. extern    int    delwind();        /* delete the current window    */
  117. extern    int    cbuf1();        /* execute numbered comd buffer */
  118. extern    int    cbuf2();
  119. extern    int    cbuf3();
  120. extern    int    cbuf4();
  121. extern    int    cbuf5();
  122. extern    int    cbuf6();
  123. extern    int    cbuf7();
  124. extern    int    cbuf8();
  125. extern    int    cbuf9();
  126. extern    int    cbuf10();
  127. extern    int    cbuf11();
  128. extern    int    cbuf12();
  129. extern    int    cbuf13();
  130. extern    int    cbuf14();
  131. extern    int    cbuf15();
  132. extern    int    cbuf16();
  133. extern    int    cbuf17();
  134. extern    int    cbuf18();
  135. extern    int    cbuf19();
  136. extern    int    cbuf20();
  137. extern    int    cbuf21();
  138. extern    int    cbuf22();
  139. extern    int    cbuf23();
  140. extern    int    cbuf24();
  141. extern    int    cbuf25();
  142. extern    int    cbuf26();
  143. extern    int    cbuf27();
  144. extern    int    cbuf28();
  145. extern    int    cbuf29();
  146. extern    int    cbuf30();
  147. extern    int    cbuf31();
  148. extern    int    cbuf32();
  149. extern    int    cbuf33();
  150. extern    int    cbuf34();
  151. extern    int    cbuf35();
  152. extern    int    cbuf36();
  153. extern    int    cbuf37();
  154. extern    int    cbuf38();
  155. extern    int    cbuf39();
  156. extern    int    cbuf40();
  157. extern    int    storemac();        /* store text for macro        */
  158. extern    int    resize();        /* resize current window    */
  159. extern    int    clrmes();        /* clear the message line    */
  160. extern    int    meta();            /* meta prefix dummy function    */
  161. extern    int    cex();            /* ^X prefix dummy function    */
  162. extern    int    unarg();        /* ^U repeat arg dummy function    */
  163. extern    int    istring();        /* insert string in text    */
  164. extern    int    unmark();        /* unmark current buffer    */
  165. #if    ISRCH
  166. extern    int    fisearch();        /* forward incremental search    */
  167. extern    int    risearch();        /* reverse incremental search    */
  168. #endif
  169. #if    WORDPRO
  170. extern    int    wordcount();        /* count words in region    */
  171. #endif
  172. extern    int    savewnd();        /* save current window        */
  173. extern    int    restwnd();        /* restore current window    */
  174. extern    int    upscreen();        /* force screen update        */
  175. extern    int    writemsg();        /* write text on message line    */
  176. #if    FLABEL
  177. extern    int    fnclabel();        /* set function key label    */
  178. #endif
  179. #if    APROP
  180. extern    int    apro();            /* apropos fuction        */
  181. #endif
  182. #if    CRYPT
  183. extern    int    setkey();        /* set encryption key        */
  184. #endif
  185. extern    int    wrapword();        /* wordwrap function        */
  186. #if    CFENCE
  187. extern    int    getfence();        /* move cursor to a matching fence */
  188. #endif
  189. extern    int    newsize();        /* change the current screen size */
  190. extern    int    setvar();        /* set a variables value */
  191. extern    int    newwidth();        /* change the current screen width */
  192.  
  193. /*    Name to function binding table
  194.  
  195.         This table gives the names of all the bindable functions
  196.     end their C function address. These are used for the bind-to-key
  197.     function.
  198. */
  199.  
  200. NBIND    names[] = {
  201.     {"abort-command",        ctrlg},
  202.     {"add-mode",            setmode},
  203.     {"add-global-mode",        setgmode},
  204. #if    APROP
  205.     {"apropos",            apro},
  206. #endif
  207.     {"backward-character",        backchar},
  208.     {"begin-macro",            ctlxlp},
  209.     {"beginning-of-file",        gotobob},
  210.     {"beginning-of-line",        gotobol},
  211.     {"bind-to-key",            bindtokey},
  212.     {"buffer-position",        showcpos},
  213.     {"case-region-lower",        lowerregion},
  214.     {"case-region-upper",        upperregion},
  215.     {"case-word-capitalize",    capword},
  216.     {"case-word-lower",        lowerword},
  217.     {"case-word-upper",        upperword},
  218.     {"change-file-name",        filename},
  219.     {"change-screen-size",        newsize},
  220.     {"change-screen-width",        newwidth},
  221.     {"clear-and-redraw",        refresh},
  222.     {"clear-message-line",        clrmes},
  223.     {"copy-region",            copyregion},
  224. #if    WORDPRO
  225.     {"count-words",            wordcount},
  226. #endif
  227.     {"ctlx-prefix",            cex},
  228.     {"delete-blank-lines",        deblank},
  229.     {"delete-buffer",        killbuffer},
  230.     {"delete-mode",            delmode},
  231.     {"delete-global-mode",        delgmode},
  232.     {"delete-next-character",    forwdel},
  233.     {"delete-next-word",        delfword},
  234.     {"delete-other-windows",    onlywind},
  235.     {"delete-previous-character",    backdel},
  236.     {"delete-previous-word",    delbword},
  237.     {"delete-window",        delwind},
  238.     {"describe-bindings",        desbind},
  239.     {"describe-key",        deskey},
  240.     {"end-macro",            ctlxrp},
  241.     {"end-of-file",            gotoeob},
  242.     {"end-of-line",            gotoeol},
  243.     {"exchange-point-and-mark",    swapmark},
  244.     {"execute-buffer",        execbuf},
  245.     {"execute-command-line",    execcmd},
  246.     {"execute-file",        execfile},
  247.     {"execute-macro",        ctlxe},
  248.     {"execute-macro-1",        cbuf1},
  249.     {"execute-macro-2",        cbuf2},
  250.     {"execute-macro-3",        cbuf3},
  251.     {"execute-macro-4",        cbuf4},
  252.     {"execute-macro-5",        cbuf5},
  253.     {"execute-macro-6",        cbuf6},
  254.     {"execute-macro-7",        cbuf7},
  255.     {"execute-macro-8",        cbuf8},
  256.     {"execute-macro-9",        cbuf9},
  257.     {"execute-macro-10",        cbuf10},
  258.     {"execute-macro-11",        cbuf11},
  259.     {"execute-macro-12",        cbuf12},
  260.     {"execute-macro-13",        cbuf13},
  261.     {"execute-macro-14",        cbuf14},
  262.     {"execute-macro-15",        cbuf15},
  263.     {"execute-macro-16",        cbuf16},
  264.     {"execute-macro-17",        cbuf17},
  265.     {"execute-macro-18",        cbuf18},
  266.     {"execute-macro-19",        cbuf19},
  267.     {"execute-macro-20",        cbuf20},
  268.     {"execute-macro-21",        cbuf21},
  269.     {"execute-macro-22",        cbuf22},
  270.     {"execute-macro-23",        cbuf23},
  271.     {"execute-macro-24",        cbuf24},
  272.     {"execute-macro-25",        cbuf25},
  273.     {"execute-macro-26",        cbuf26},
  274.     {"execute-macro-27",        cbuf27},
  275.     {"execute-macro-28",        cbuf28},
  276.     {"execute-macro-29",        cbuf29},
  277.     {"execute-macro-30",        cbuf30},
  278.     {"execute-macro-31",        cbuf31},
  279.     {"execute-macro-32",        cbuf32},
  280.     {"execute-macro-33",        cbuf33},
  281.     {"execute-macro-34",        cbuf34},
  282.     {"execute-macro-35",        cbuf35},
  283.     {"execute-macro-36",        cbuf36},
  284.     {"execute-macro-37",        cbuf37},
  285.     {"execute-macro-38",        cbuf38},
  286.     {"execute-macro-39",        cbuf39},
  287.     {"execute-macro-40",        cbuf40},
  288.     {"execute-named-command",    namedcmd},
  289.     {"exit-emacs",            quit},
  290. #if    WORDPRO
  291.     {"fill-paragraph",        fillpara},
  292. #endif
  293.     {"filter-buffer",        filter},
  294.     {"find-file",            filefind},
  295.     {"forward-character",        forwchar},
  296.     {"goto-line",            gotoline},
  297. #if    CFENCE
  298.     {"goto-matching-fence",        getfence},
  299. #endif
  300.     {"grow-window",            enlargewind},
  301.     {"handle-tab",            tab},
  302.     {"hunt-forward",        forwhunt},
  303.     {"hunt-backward",        backhunt},
  304.     {"help",            help},
  305.     {"i-shell",            spawncli},
  306. #if    ISRCH
  307.     {"incremental-search",        fisearch},
  308. #endif
  309.     {"insert-file",            insfile},
  310.     {"insert-space",        insspace},
  311.     {"insert-string",        istring},
  312. #if    WORDPRO
  313.     {"kill-paragraph",        killpara},
  314. #endif
  315.     {"kill-region",            killregion},
  316.     {"kill-to-end-of-line",        killtext},
  317. #if    FLABEL
  318.     {"label-function-key",        fnclabel},
  319. #endif
  320.     {"list-buffers",        listbuffers},
  321.     {"meta-prefix",            meta},
  322.     {"move-window-down",        mvdnwind},
  323.     {"move-window-up",        mvupwind},
  324.     {"name-buffer",            namebuffer},
  325.     {"newline",            newline},
  326.     {"newline-and-indent",        indent},
  327.     {"next-buffer",            nextbuffer},
  328.     {"next-line",            forwline},
  329.     {"next-page",            forwpage},
  330. #if    WORDPRO
  331.     {"next-paragraph",        gotoeop},
  332. #endif
  333.     {"next-window",            nextwind},
  334.     {"next-word",            forwword},
  335.     {"open-line",            openline},
  336.     {"pipe-command",        pipe},
  337.     {"previous-line",        backline},
  338.     {"previous-page",        backpage},
  339. #if    WORDPRO
  340.     {"previous-paragraph",        gotobop},
  341. #endif
  342.     {"previous-window",        prevwind},
  343.     {"previous-word",        backword},
  344.     {"query-replace-string",    qreplace},
  345.     {"quick-exit",            quickexit},
  346.     {"quote-character",        quote},
  347.     {"read-file",            fileread},
  348.     {"redraw-display",        reposition},
  349.     {"resize-window",        resize},
  350.     {"restore-window",        restwnd},
  351.     {"replace-string",        sreplace},
  352. #if    ISRCH
  353.     {"reverse-incremental-search",    risearch},
  354. #endif
  355.     {"save-file",            filesave},
  356.     {"save-window",            savewnd},
  357.     {"search-forward",        forwsearch},
  358.     {"search-reverse",        backsearch},
  359.     {"select-buffer",        usebuffer},
  360.     {"set",                setvar},
  361. #if    CRYPT
  362.     {"set-encryption-key",        setkey},
  363. #endif
  364.     {"set-fill-column",        setfillcol},
  365.     {"set-mark",            setmark},
  366.     {"shell-command",        spawn},
  367.     {"shrink-window",        shrinkwind},
  368.     {"split-current-window",    splitwind},
  369.     {"store-macro",            storemac},
  370. #if    BSD
  371.     {"suspend-emacs",        bktoshell},
  372. #endif
  373.     {"transpose-characters",    twiddle},
  374.     {"unbind-key",            unbindkey},
  375.     {"universal-argument",        unarg},
  376.     {"unmark-buffer",        unmark},
  377.     {"update-screen",        upscreen},
  378.     {"view-file",            viewfile},
  379.     {"wrap-word",            wrapword},
  380.     {"write-file",            filewrite},
  381.     {"write-message",        writemsg},
  382.     {"yank",            yank},
  383.  
  384.     {"",            NULL}
  385. };
  386.